package com.cby.springboot.demo.mapper;

import com.cby.springboot.demo.bean.AdminRolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminRolePermissionMapper {

    @Select("select * from admin_role_permission")
    List<AdminRolePermission> findAll();

    @Select("select * from admin_role_permission where rid = #{rid}")
    List<AdminRolePermission> findByRid(@Param("rid") int rid);

    @Select("select * from admin_role_permission where pid = #{pid}")
    List<AdminRolePermission> findByPid(@Param("pid") int pid);
}
